{include file="header.tpl" title="HRFORMULAR"}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td nowrap="nowrap">{$lbl_CMFLD}</td>
    <td colspan="3" style="color:#FF0000;">
	<select id="CMFLD" name="tmpCMFLD" size="1" {if $activefield eq 'enabled'} disabled="disabled" {/if} ">
	<option value=""/>
	  
 		{foreach from=$cbo_cmfld key=k item=v}
      	
	  <option value="{$k}" {if $CMFLD eq $k} selected="selected" {/if}>{$v}</option>
	  
 		{/foreach}
		
	  </select> 
	* 
      <input type="hidden" name="CMFLD" value="{$CMFLD}"/>	</td>
  </tr>
  <tr>
    <td>{$lbl_VNDESC}</td>
    <td colspan="3">
      	<input name="VNDESC" id="VNDESC" type="text" value="{$VNDESC}" size="50" maxlength="50"/>     </td>
    </tr>
  <tr>
    <td>{$lbl_ENDESC}</td>
    <td colspan="3"><input name="ENDESC" id="ENDESC" type="text" value="{$ENDESC}" size="50" maxlength="50"/></td>
    </tr>
  <tr>
    <td>{$lbl_ISDFT}</td>
    <td colspan="3">
		<select name="ISDFT" size="1">
 		{foreach from=$cbo_enabled key=k item=v}
      	<option value="{$k}" {if $ISDFT eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select>   </td>
	</tr>
  <tr>
    <td>{$lbl_LSCODE}</td>
    <td colspan="3" style="color:#FF0000;">
	   <input type="text" name="LSCODE" id="LSCODE" value="{$LSCODE}" size="20" maxlength="5" {if $activefield eq 'enabled'} readonly="readOnly" {/if} onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onblur="this.value=this.value.toUpperCase().replace(' ','');"/> 
	   *  
      <input type="button" onclick="mywindow = window.open('hrcmlists_lscode.php?id='+document.getElementById('CMFLD').value+'&type=2', 'mywindow','menubar=0,resizable=yes,width=400,height=300, scrollbars=yes');mywindow.moveTo((screen.width-400)/2,screen.height/2);" name="findlscode" id="replacement_binoculars" value="     "  {if $activefield eq 'enabled'} disabled="disabled" {/if} /> <input type="submit" name="find" value="    " id="replacement_find"  {if $activefield eq 'enabled'} disabled="disabled" {/if}  />	 </td>
    </tr>
  <tr>
    <td>{$lbl_LSVAL}</td>
    <td colspan="3">
	 <input name="LSVAL" id="LSVAL" type="text" value="{$LSVAL}" size="20" maxlength="20"  onBlur="checkCurrency20(this,this.value); formatNumber(this,this.value);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" style="text-align:right;"/>	</td>
	</tr>
	<tr>
	  <td>{$lbl_LSDESC}</td>
	  <td colspan="3"><input name="LSDESC" id="LSDESC" type="text" value="{$LSDESC}" size="50" maxlength="50" /></td>
    </tr>
	<tr>
    <td>{$lbl_CM2POS}</td>
    <td colspan="3"><select name="CM2POS" id="CM2POS" size="1">
 		{foreach from=$cbo_CM2POS key=k item=v}
      	<option value="{$k}" {if $CM2POS eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select></td>
	</tr>
<tr>    
    <td colspan="4">&nbsp;	</td>
</tr>
<tr>
<td width="20%">
<input value="{$lich_su_thay_doi}" name="lichsuthaydoi" type="button" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" onclick="mywindow = window.open('lich_su_hrcmlists.php?CMFLD={$CMFLD}&LSCODE={$LSCODE}', 'mywindow','menubar=0,scrollbars=1,resizable=0,width=700,height=300');mywindow.moveTo((screen.width-700)/2,(screen.height-300)/2);" /></td>
<td colspan="3" align="right" nowrap="nowrap">

   <input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="activeform(this.form,'tmpCMFLD-LSCODE');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
   
   <input type="submit" name="capnhat" value="{$ten_cap_nhat}" {if $activefield eq 'disabled' }disabled="disabled" {/if} class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
  </tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap">
<input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
<input name="detail" type="submit" value="{$ten_chitiet}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td >
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
